@page
@{ Layout = "_Layout"; }
<el-card class="box-card">
    <el-form :inline="true" :size="euiSize">
        <el-form-item label="题型">
            <el-input prefix-icon="el-icon-search" v-model="name" placeholder="名称" clearable></el-input>
        </el-form-item>
        <el-form-item>
            <el-button :size="euiSize" type="primary" icon="el-icon-search" v-on:click="btnSearchClick">查 询</el-button>
            <el-button :size="euiSize" plain type="primary" icon="el-icon-plus" v-on:click="btnEditClick(0)">
                新增题型
            </el-button>
        </el-form-item>
    </el-form>
    <el-table :data="list" :size="euiSize" :height="($(window).height() - 115)">
        <el-table-column label="#" type="index" :default-sort="{prop: 'createdDate', order: 'descending'}" width="40">
        </el-table-column>
        <el-table-column label="名称" prop="name" sortable>
              <template slot-scope="scope">
                  {{ scope.row.name }}
              </template>
        </el-table-column>
        <el-table-column label="基本题型" prop="txBaseName" width="150" sortable></el-table-column>
        <el-table-column label="默认分数" prop="score" width="120" sortable></el-table-column>
        <el-table-column label="题目数量" prop="tmCount" width="120" sortable></el-table-column>
        <el-table-column width="130" label="创建人">
            <template slot-scope="scope">
                {{scope.row.creatorDisplayName}}
            </template>
        </el-table-column>
        <el-table-column label="创建时间" prop="createdDate" width="150" sortable></el-table-column>
        <el-table-column label="排序号" prop="taxis" width="120" sortable></el-table-column>
        <el-table-column width="100" align="right">
            <template slot-scope="scope">
                <el-dropdown :show-timeout="0" placement="left">
                    <el-button :size="euiSize" v-on:click.stop="return false">
                        操作<i class="el-icon-arrow-down el-icon--right"></i>
                    </el-button>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item v-on:click.native="handleCommand('edit',scope.row)">修改</el-dropdown-item>
                        <el-dropdown-item v-on:click.native="handleCommand('delete',scope.row)" style="color:red;">删除</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </template>
        </el-table-column>
        @await Html.PartialAsync("_PartialTableEmpty")
    </el-table>
</el-card>
@section Scripts{
<script src="/sitefiles/assets/js/admin/exam/examTx.js" type="text/javascript"></script>
 }